<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
        $orderId=$_REQUEST['orderId'];
        $goodsId=$_REQUEST['goodsId'];
        $shopId=$_REQUEST['shopId'];
		$sql="select * from `".$oto."_share` where `userId`='".$user_id."' and orderId='{$orderId}' and goodsId='{$goodsId}' and shopId='{$shopId}'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$appraises_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($appraises_info))
		{
			if($appraises_info[0]['shareImg1']==null) $appraises_info[0]['shareImg1']="";

			if($appraises_info[0]['shareImg2']==null) $appraises_info[0]['shareImg2']="";

			if($appraises_info[0]['shareImg3']==null) $appraises_info[0]['shareImg3']="";

			if($appraises_info[0]['shareImg4']==null) $appraises_info[0]['shareImg4']="";
		}
		echo json_encode($appraises_info);
?>